package com.team5101.utils;

import com.team5101.entity.NowFilm;

import java.util.List;

public class FenYeUtile {
    private Integer currentPage; //当前页数，前端传过来的           1
    private Integer pageSize = 2;   //每页展示的条数,用于数据库查询 2
    private Integer allCount;    //总条数                          3
    private Integer pages;       //总页数                          4
    private List<NowFilm> onMovies; //返回的每页展示的数据          5

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getAllCount() {
        return allCount;
    }

    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public List<NowFilm> getOnMovies() {
        return onMovies;
    }

    public void setOnMovies(List<NowFilm> onMovies) {
        this.onMovies = onMovies;
    }

    @Override
    public String toString() {
        return "FenYeUtile{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", allCount=" + allCount +
                ", pages=" + pages +
                ", onMovies=" + onMovies +
                '}';
    }
}
